<template>
  <Suspense>
    <template v-slot:default>
      <Child></Child>
    </template>
    <template v-slot:fallback>
      <h2>加载中......</h2>
    </template>
  </Suspense>
  <Child />
</template>

<script lang="ts" setup>
  import Child from './components/Child.vue'
</script>

<style>
  body {
    width: 100%;
    height: 100%;
    color: #000;
  }
</style>